/**
 * 档案管理路由
 */


import Main from '@/components/main'
import parentView from '@/components/parent-view'

const docManageRouter = {
  path: '/doc-manage',
  name: 'doc-manage',
  meta: {
    keepAlive: true,
    icon: '_danganguanli',
    title: '档案管理',
    showAlways: true,
    access: ['FilesManage']
  },
  component: Main,
  children: [
    {
      path: 'employee-doc',
      name: 'employee-doc',
      meta: {
        keepAlive: true,
        title: '员工档案管理',
        access: ['EmployeeFilesManage']
      },
      component: () => import('@/view/files-manage/employee-files/index.vue')
    },
    {
      path: 'contract-doc',
      name: 'contract-doc',
      meta: {
        keepAlive: true,
        title: '客户合同管理',
        access: ['CustomerFilesManage']
      },
      component: () => import('@/view/files-manage/contract-files/index.vue')
    }
  ]
}

export default docManageRouter;